package com.kid.keep.service;

import com.kid.keep.dto.MessageDTO;

import java.util.List;

/**
 * @Description 消息
 * @Author JOHN
 * @Create 2020-01-13
 * @Since 1.0.0
 */
public interface IMessageService {

    /**
     * 统计未读消息
     * @param creatorId
     * @return
     */
    Integer countNewMessages(Long creatorId);

    /**
     * 未读消息列表
     * @param creatorId
     * @return
     */
    List<MessageDTO> listNewMessagesByType(Integer type,Long creatorId);
    /**
     * 读消息
     * @param messageId
     * @param creatorId
     * @return
     */
    void readMessage(Long messageId,Long creatorId);
    /**
     * 读消息
     * @param creatorId
     * @return
     */
    void readMessage(Long creatorId);

}
